package com.his.dictresource.dao;

import com.his.dictresource.entity.ResourceControl;
import com.his.dictresource.entity.ResourceControlInfo;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ResourceControlMapper {
    /**
     * 查看排班控制表
     * @return
     */
    ResourceControl rscontrol( Date curDate,String dateTypeId, String resourceTypeId, String resourceId);
    /* 
     * 
     * 查询排班科室名称 
     * [resourceControl] 
     * @return java.util.List<com.his.dictresource.entity.ResourceControlInfo>
     * @date 2020/3/24 17:35
     */
    List<ResourceControlInfo> control_info(ResourceControl resourceControl);
    /* 
     * 
     * 查询排班医生
     * [resourceControl] 
     * @return java.util.List<com.his.dictresource.entity.ResourceControlInfo>
     * @date 2020/3/24 17:36
     */
    List<ResourceControl> control_doctor(ResourceControl resourceControl);
    /** 
     * 
     * 查询号源限制数量 
     * [resourceControl] 
     * @return java.lang.Integer
     * @date 2020/3/26 11:56
     */
    ResourceControl limitamount(ResourceControl resourceControl);
    /** 
     * 
     * 查询号源剩余数量
     * [resourceControl] 
     * @return java.util.List<com.his.dictresource.entity.ResourceControl>
     * @date 2020/3/28 9:47
     */
    List<ResourceControlInfo> risdueamount(ResourceControl resourceControl);

    /**
     * 查询日期类型编码
     * @param resourceControlInfo
     * @return
     */
    List<ResourceControlInfo> control_datetypeid (ResourceControlInfo resourceControlInfo);
}
